package com.objectdraw.client.objectdraw;
//import java.awt.*;
import java.util.*;

/**
 * creates a list of tool listeners
 * 
 * @author jgulik, cfruehan
 *
 */
public class ToolList {
   
  private Vector<ToolListener> list;

  /**
   * create a new tool list
   */
  public ToolList() {
   list = new Vector<ToolListener>(5,1);
  }
  
  /**
   * add the param to the list of tools
   * @param item tool listener to be added to the list
   */
  public void add(ToolListener item) {
    list.add(item);
 }

  /**
   * 
   * @return a new tool list iterator
   */
  public ToolListIterator iterator() {
    return new ToolListIterator(list);
  }

}
